//
//  MemoWidgetView.swift
//  memoWidgetExtension
//
//  Created by DaleGuo on 2023/10/9.
//

import SwiftUI

struct MemoWidgetView_medium: View {
    var entry: Provider.Entry
    
    var body: some View {
        VStack(alignment: .leading, spacing: 2) {
            Text(entry.memo.title)
                .lineLimit(1)
                .font(.title3)
                .fontWeight(.bold)
            
            Text(entry.memo.content)
                .font(.system(size: 15))
                .lineLimit(5)
            
            Spacer()
            
            Text(entry.memo.updated_date.formatted(date: .omitted, time: .shortened))
                .font(.caption)
                .foregroundStyle(Color("SecondaryText"))
        }
        .frame(maxWidth: .infinity, alignment: .leading)
    }
}
